package cn.ibizlab.odoo.core.odoo_account.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_account.domain.Account_invoice_line;
import cn.ibizlab.odoo.core.odoo_account.filter.Account_invoice_lineSearchContext;

/**
 * 实体[Account_invoice_line] 服务对象接口
 */

public interface IAccount_invoice_lineService{
     boolean update(Account_invoice_line account_invoice_line) ;
     void updateBatch(List<Account_invoice_line> account_invoice_lines, int batchSize) ;
     void createBatch(List<Account_invoice_line> account_invoice_lines, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     Account_invoice_line get(Integer id) ;
     Account_invoice_line get(Account_invoice_line account_invoice_line) ;
     boolean remove(Integer id) ;
     boolean create(Account_invoice_line account_invoice_line) ;

    /**
     * 查询集合 默认查询
     */
    Page<Account_invoice_line> searchDefault(Account_invoice_lineSearchContext context) ;

    /**
     * 根据科目查询
     */
     Page<Account_invoice_line> selectByOdoo_account(Integer id) ;

    /**
     * 根据分析账户查询
     */
     Page<Account_invoice_line> selectByOdoo_account_analytic(Integer id) ;

    /**
     * 根据发票查询
     */
     Page<Account_invoice_line> selectByOdoo_invoice(Integer id) ;

    /**
     * 根据产品查询
     */
     Page<Account_invoice_line> selectByOdoo_product(Integer id) ;

    /**
     * 根据采购订单行查询
     */
     Page<Account_invoice_line> selectByOdoo_purchase_line(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Account_invoice_line> selectByOdoo_company(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Account_invoice_line> selectByOdoo_currency(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Account_invoice_line> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_invoice_line> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_invoice_line> selectByOdoo_write(Integer id) ;

    /**
     * 根据产品计量单位查询
     */
     Page<Account_invoice_line> selectByOdoo_uom(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Account_invoice_line convert2Domain(cn.ibizlab.odoo.core.client.model.Iaccount_invoice_line model ,Account_invoice_line domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iaccount_invoice_line convert2Model(Account_invoice_line domain , cn.ibizlab.odoo.core.client.model.Iaccount_invoice_line model);

}
